function test(person) {
    person.age = 25
    person = {
        name: 'Jerry',
        age: 30
    }
    return person
}
const p1 = {
    name: 'Tom',
    age: 20
}
const p2 = test(p1)
console.log(p1)
console.log(p2)